ENT.Type = "ai"
ENT.Base = "base_ai"
ENT.PrintName = "Car Dealer NPC"
ENT.Author = "Carocrazy132"
ENT.Spawnable = true
ENT.AdminSpawnable = true

local carPos
paintJob = paintJob or Color(255,255,255,255)
function ENT:Initialize()
	paintJob = Color(255,255,255,255)
end

function addCar(name, price)
	for k,v in pairs(list.Get("Vehicles")) do
		if v.Name == name then
			carSets[name] = {Price = price, Model = v.Model}
		end
	end
	if not carSets[name] or carSets[name].Model then
		MsgAll("There is a problem with the " .. name .. "vehicle's addCar function.")
	end
end

//carPos = ENT:GetPos() + ENT:GetAngles():Forward()*100 + Vector(0,0,60)
carSets = {}

addCar( 'Bugatti Veyron 16.4', 2270000 )
addCar( 'Chevrolet Chevelle SS', 80000 )
addCar( 'Ferrari 512 TR', 112000 )
addCar( 'Mazda MX-5 2007', 61500 )
addCar( 'Ferrari 250GT', 88000 )
addCar( 'Volkswagen Beetle 1967', 18000 )
addCar( 'Toyota Prius', 42000 )
addCar( 'Nissan Skyline R34', 95000 )
addCar( 'Citroen C4', 46500 )
addCar( 'Ford Focus RS', 61500 )
addCar( 'Dodge RAM SRT10', 85000 )
addCar( 'Hummer H1', 50000 )
addCar( 'Hudson Hornet', 100000 )
addCar( 'Mini Cooper 1965', 34000 )
addCar( 'Ford GT 05', 99999999999999 )
addCar( "Aston Martin DBS", 57000)
addCar( "Mercedes SL65 AMG", 275000)

addCar( 'Volkswagen Scirocco GT', 60000 )
addCar( 'Toyota Supra', 65000 )
addCar( 'Mitsubishi Colt Ralliart', 30000 )
addCar( 'Subaru Impreza WRX STI', 70000 )
addCar( 'Mazda RX-8', 100000 )
addCar( 'Jeep Wrangler', 40500 )
//addCar( 'Mercedes-Benz C32 AMG', 43000 )
addCar( 'Honda Civic Type R', 50000 )
addCar( 'Audi TT 07', 75000 )
addCar( 'Chevrolet Spark', 50000 )
addCar( 'Ford Transit', 45000 )
addCar( 'Porsche 997 GT3', 257500 )
addCar( 'Lamborghini Murcielago', 100000 )
addCar( 'Porsche Cayenne Turbo S', 65200 )
addCar( 'Kia Ceed', 37700 )